﻿using PlatypusPlanner.Components.Base;
using PlatypusPlanner.Components.Database;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PlatypusPlanner.Components.Controllers
{
    public class UserController : BaseController
    {
        public UserController(PlatypusEntities context = null)
            : base(context)
        {
        }

        internal pp_user GetByUserEmail(string userEmail)
        {
            var q = from a in Context.pp_user
                    where a.Email == userEmail
                    select a;

            return q.FirstOrDefault();
        }
    }
}
